import request from '@/utils/request'

// 新增文件
export const createStorage = (data) => request({
  url: '/admin/localStorage',
  method: 'post',
  data
})

// 删除文件
export const deleteStorage = (data) => request({
  url: '/admin/localStorage',
  method: 'delete',
  data
})

// 修改文件
export const updateStorage = (data) => request({
  url: '/admin/localStorage',
  method: 'put',
  data
})

// 单个查询文件
export const queryStorage = (id) => request({
  url: '/admin/localStorage',
  method: 'get',
  params: { id }
})

// 分页查询文件
export const pageQuery = (data) => request({
  url: '/admin/localStorage/page',
  method: 'post',
  data
})
